
link_directories(
    ${YAML_CPP_LIB_DIR}
    ${CUDA_LIB_DIR}
)

add_definitions(-g)
add_executable(cuda_reduce
    reduce/reduce.cc
    reduce/reduce.cu
    reduce/main.cc
)

target_link_libraries(cuda_reduce PRIVATE
    yaml-cpp
    cudart
)

add_executable(cuda_resource
    resource/resource.cc
    info.cc
)

target_link_libraries(cuda_resource PRIVATE
    yaml-cpp
    cudart
)

install(TARGETS cuda_reduce DESTINATION bin)